As hotplug events are asynchronous by its nature, the remove event seems
authorroot@kct <root@kct>
Mon, 9 Jan 2006 11:24:02 +0000 (11:24 +0000)
committerroot@kct <root@kct>
Mon, 9 Jan 2006 11:24:02 +0000 (11:24 +0000)
to be missed in some environments. This patch adds a sleep (with the same
amount of time of the one after xm block-detach) between attach and
detach operations, giving attach enough time to complete, making test 06
suceed.

Signed-off-by: Glauber de Oliveira Costa <glommer@br.ibm.com>
tools/xm-test/tests/block-destroy/06_block-destroy_check_list_pos.py

index bc41be984e6577325187f08ee473910b2c063d97..7f1c7cd453bccf6b030d80712fbaaad07d51408f 100644 (file)
@@ -46,6 +46,8 @@ if not checkBlockList(domain):
 if not checkXmLongList(domain):
     FAIL("xm long list does not show that hda1 was attached")
 
+time.sleep(2)
+
 s, o = traceCommand("xm block-detach %s hda1" % domain.getName())
 if s != 0:
     FAIL("block-detach failed")